package com.example.dqnm.service;

import com.example.dqnm.pojo.Shippingaddress;
import com.example.dqnm.pojo.Store;
import com.example.dqnm.pojo.User;
import com.example.dqnm.pojo.UserDefaultStore;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface UserService {
    // 登录方法。成功登录则返回当前token
    public String login(String code);

    // 根据openid获取用户信息
    public User getUserInfo(String openid);

    Boolean updateUserInfo(User user) throws IOException;

    String uploadAvatar(MultipartFile avatar);

    Boolean setDefaultShippingAddress(Shippingaddress shippingaddress);

    Boolean setDefaultStore(UserDefaultStore userDefaultStore);
}
